# $Id$
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Max Fehrm max.fehrm@gmail.com
pkgname=libmusicbrainz3
pkgver=3.0.3
pkgrel=4
pkgdesc="Library That Provides Access to the MusicBrainz Server  "
url="http://musicbrainz.org/"
arch=('i686' 'x86_64')
license=('LGPL2.1')
depends=('neon' 'libdiscid')
makedepends=('cmake')
source=(ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-$pkgver.tar.gz)
md5sums=('f4824d0a75bdeeef1e45cc88de7bb58a')
build() {
  cd ${srcdir}
  mkdir build
  cd build
  cmake ../libmusicbrainz-${pkgver} \
      -DCMAKE_INSTALL_PREFIX:PATH=/usr \
      -DBUILD_SHARED_LIBS:BOOL=ON \
      -DBUILD_STATIC_LIBS:BOOL=OFF
  make
}

package() {
  cd ${srcdir}/build
  make DESTDIR=${pkgdir} install
}
